package com.sofwin.service;

import com.sofwin.pojo.SysResource;

import java.util.List;

/**
 * @packageName: com.sofwin.service
 * @user: andyliu
 * @date: 2023/1/3 15:55
 * @email 115176513@qq.com
 * @description: TODO
 */

public interface ResourceService {
    List<SysResource> queryResources(SysResource resource);

    /**
     *
     * @param roleId
     * @return
     */
    List<SysResource> queryResourceByRoleId(Integer roleId);

    /**
     * 根据角色id查询当前角色所拥有的3级资源的permission
     * @param roleId
     * @return
     */
    List<String> queryPermissionsByRoleId(Integer roleId);
}
